package com.xiaoniu.workflow.config.security;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;

/**
 * @author xn87260
 * @description:ResourceServerConfiguration OAuth2+Jwt配置
 * @date 2018/09/16
 **/
@Configuration
public class ResourceServerConfiguration extends com.xiaoniu.config.ResourceServerConfiguration {
    @Override
    public void configure(HttpSecurity http) throws Exception {
    	http.authorizeRequests().antMatchers("/**").permitAll()
                .and().authorizeRequests().anyRequest().authenticated();
    }

}